<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<html>
<head>
<script type="text/javascript" src="../resources/js/jquery-1.8.0.min.js"></script>

<script type="text/javascript">
function nowTime(){
var time = new Date(); //获得当前时间
var year = time.getFullYear();//获得年、月、日
var month = time.getMonth()+1;
var day = time.getDate(); 
var hour = time.getHours(); //获得小时、分钟、秒 
var minute = time.getMinutes(); 
var second = time.getSeconds(); 
var d = time.getDay();

if (minute < 10) //如果分钟只有1位，补0显示 
 minute="0"+minute; 
if (second < 10) //如果秒数只有1位，补0显示 
 second="0"+second; 
/*设置文本框的内容为当前时间*/
var arr_week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
	var week=arr_week[d];
var str=year+"年"+month+"月"+day+"日   "+hour+":"+minute+":"+second;
$("#pubTime").val(str); 
/*设置定时器每隔1秒（1000毫秒），调用函数disptime()执行，刷新时钟显示*/ 
var myTime = setTimeout("nowTime()",1000); 
}
</script>
</head>
<form:form  modelAttribute="sevenDaysVo" action="/views/sevenDaysSave">
	发布时间：<form:input path="pubTimeStr"/><br>
	第一天市区天气：<form:input path="cityWeather1"/><br>
	第一天市区温度：<form:input path="cityTemp1"/><br>
	
	北仑：<form:input path="portList1[0].windDirect"/>
	<form:input path="portList1[0].windSpeed"/><br>
	象山北：<form:input path="portList1[1].windDirect"/>
	<form:input path="portList1[1].windSpeed"/><br>
	象山南：<form:input path="portList1[2].windDirect"/>
	<form:input path="portList1[2].windSpeed"/><br>
	
	第二天市区天气：<form:input path="cityWeather2"/><br>
	第二天市区温度：<form:input path="cityTemp2"/><br>
	
	北仑：<form:input path="portList2[0].windDirect"/>
	<form:input path="portList2[0].windSpeed"/><br>
	象山北：<form:input path="portList2[1].windDirect"/>
	<form:input path="portList2[1].windSpeed"/><br>
	象山南：<form:input path="portList2[2].windDirect"/>
	<form:input path="portList2[2].windSpeed"/><br>
	
	第三天市区天气：<form:input path="cityWeather3"/><br>
	第三天市区温度：<form:input path="cityTemp3"/><br>
	
	北仑：<form:input path="portList3[0].windDirect"/>
	<form:input path="portList3[0].windSpeed"/><br>
	象山北：<form:input path="portList3[1].windDirect"/>
	<form:input path="portList3[1].windSpeed"/><br>
	象山南：<form:input path="portList3[2].windDirect"/>
	<form:input path="portList3[2].windSpeed"/><br>
	
	第三天市区天气：<form:input path="cityWeather3"/><br>
	第三天市区温度：<form:input path="cityTemp3"/><br>
	
	北仑：<form:input path="portList3[0].windDirect"/>
	<form:input path="portList3[0].windSpeed"/><br>
	象山北：<form:input path="portList3[1].windDirect"/>
	<form:input path="portList3[1].windSpeed"/><br>
	象山南：<form:input path="portList3[2].windDirect"/>
	<form:input path="portList3[2].windSpeed"/><br>
	
	第四天市区天气：<form:input path="cityWeather4"/><br>
	第四天市区温度：<form:input path="cityTemp4"/><br>
	
	北仑：<form:input path="portList4[0].windDirect"/>
	<form:input path="portList4[0].windSpeed"/><br>
	象山北：<form:input path="portList4[1].windDirect"/>
	<form:input path="portList4[1].windSpeed"/><br>
	象山南：<form:input path="portList4[2].windDirect"/>
	<form:input path="portList4[2].windSpeed"/><br>
	
	第五天市区天气：<form:input path="cityWeather5"/><br>
	第五天市区温度：<form:input path="cityTemp5"/><br>
	
	北仑：<form:input path="portList5[0].windDirect"/>
	<form:input path="portList5[0].windSpeed"/><br>
	象山北：<form:input path="portList5[1].windDirect"/>
	<form:input path="portList5[1].windSpeed"/><br>
	象山南：<form:input path="portList5[2].windDirect"/>
	<form:input path="portList5[2].windSpeed"/><br>
	
	第六天市区天气：<form:input path="cityWeather6"/><br>
	第六天市区温度：<form:input path="cityTemp6"/><br>
	
	北仑：<form:input path="portList6[0].windDirect"/>
	<form:input path="portList6[0].windSpeed"/><br>
	象山北：<form:input path="portList6[1].windDirect"/>
	<form:input path="portList6[1].windSpeed"/><br>
	象山南：<form:input path="portList6[2].windDirect"/>
	<form:input path="portList6[2].windSpeed"/><br>
	
	第七天市区天气：<form:input path="cityWeather7"/><br>
	第七天市区温度：<form:input path="cityTemp7"/><br>
	
	北仑：<form:input path="portList7[0].windDirect"/>
	<form:input path="portList7[0].windSpeed"/><br>
	象山北：<form:input path="portList7[1].windDirect"/>
	<form:input path="portList7[1].windSpeed"/><br>
	象山南：<form:input path="portList7[2].windDirect"/>
	<form:input path="portList7[2].windSpeed"/><br>
	<input type="submit" value="Save" />
</form:form>

</html>